
$(function() {

	$('#category_t').selectChain({
		target: $('#type_t'),
		key: "code",
		value: "name",
		url: 'info.php?do=Equipment.ajax_category',
		data: { ajax: true }
	}).trigger('change');
	
	_change("input[id='category']:visible", "select[id^='category_t']:visible");
	 
	_change("input[id='type']:visible", "select[id^='type_t']:visible");

	 $('textarea').css("width", 400);
});
